<!DOCTYPE html	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" xmlns:s="http://sduept.security.el/func"
	template="/template/template_dialog.xhtml">
	<ui:define name="head">
		<link href="/css/primefaces/menubase.css" rel="stylesheet" type="text/css" />
		<title>查看</title>
		<style type="text/css">
			.ui-datatable-scrollable-header, .ui-datatable-scrollable-footer {
			    border: 0 none;
			    /* padding-right: 15px; */
			}
			.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
			    border: 1px solid #d6d6d6;
			    background: #fff;
			    font-weight: bold;
			    color: #222;
			}
		</style>
		<script>
		$(function() {
			setHeight();
			var sc = document.getElementsByClassName("ui-datatable-scrollable-body")[0];
			if(sc.clientHeight >= sc.scrollHeight) {
				$('.ui-datatable-scrollable-header').attr('style','padding-right:15px!important');
			}
		})
		function setHeight() {
			var height = $(window).height();
			var dtHeight = height-84;
			$('.ui-datatable-scrollable-body').attr('style','height:'+dtHeight+'px');
			document.getElementsByClassName("ui-datatable-scrollable-body")[0].style.overflowY = "scroll";
		}
		</script>
	</ui:define>
 	
	<ui:define name="content">
		<s:dataTable id="instationModelList" value="#{lookupInspectOtherPlanController.targetModels}" rowIndexVar="ite"    
			var="item" emptyMessage="无记录" style="text-align:center;" scrollable="true" scrollHeight="0" >
			<f:facet name="header">
				<h:outputText value="#{lookupInspectOtherPlanController.currentPlan.name}" />
			</f:facet>
			<s:column groupRow="true" headerText="专家派出分子公司">
				<h:outputText value="#{item.inspectionScope}" />
			</s:column>
			<s:column groupRow="true" headerText="被检分子公司">
				<h:outputText value="#{item.acceptScope}" />
			</s:column>
			<s:column headerText="被检单位">
				<h:outputText value="#{item.acceptUnit}" />
			</s:column>
			<s:column headerText="被检单位迎检联系人">
				<h:outputText value="#{item.stationPersonnel}" />
			</s:column>
			<s:column headerText="被检单位迎检联系人电话">
				<h:outputText value="#{item.stationPersonnelPhone}" />
			</s:column>
			<s:column headerText="派出专家分子公司联系人">
				<h:outputText value="#{item.inspectionScopePersonnel}" />
				<br/>
				<h:outputText value="#{item.inspectionScopePersonnelPhone}" />
			</s:column>
			<s:column headerText="组别">
				<h:outputText value="#{item.inspectionExpertGroup}" />
			</s:column>
			<s:column headerText="派出专家名称">
				<h:outputText value="#{item.inspectionExpert}" />
			</s:column>
			<s:column headerText="派出专家供电局名称">
				<h:outputText value="#{item.inspectionUnit}" />
			</s:column>
			<s:column headerText="派出专家联系电话">
				<h:outputText value="#{item.inspectionExpertPhone}" />
			</s:column>
			<s:column headerText="预计检查时间">
				<h:outputText value="#{item.startTime}">
		       		<f:convertDateTime pattern="yyyy-MM-dd" timeZone="GMT+8"/>  
	   		    </h:outputText>
	   		    至
	   		    <h:outputText value="#{item.endTime}">
		       		<f:convertDateTime pattern="yyyy-MM-dd" timeZone="GMT+8"/>  
	   		    </h:outputText>
			</s:column>
			<s:column headerText="实际抽检变电站名称">
				<h:outputText value="#{item.stationName}" />
			</s:column>
			<s:column headerText="抽检变电站类型">
				<h:outputText value="#{item.stationType}" />
			</s:column>
		</s:dataTable>
	</ui:define>
</ui:composition>